package com.group02.community.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group02.community.entity.user.SysPost;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface IPostService extends IService<SysPost> {

    /**
     *分页
     * @param current
     * @param size
     * @return
     */
    IPage<SysPost> getPage(Long current, Long size);


    /**
     * 模糊查询
     * @param postName
     * @param status
     * @return
     */
    List<SysPost> getQueryPage(String postCode, String postName, String status);

    /**
     * 逻辑删除
     * @param postId
     */
    void iaDelete(String postId);

    /**
     * 多删
     * @param ids
     */
    void deleteGroup(List<String> ids);

    /**
     * 文件导出
     * @param response
     * @throws IOException
     */
    void exportExcel(HttpServletResponse response) throws IOException;
    /**
     * 根据岗位id查询岗位人员
     * @param id
     * @return
     */
    Long getUserByPostId( String  id);



}
